<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />

    

<?php
$this->title = 'Zend Achat';
$this->headTitle($this->title);
echo $this->profileLink();

?>
<h1>Bienvenue sur la page d'accueil du site Zend Achat</h1>
<ul>
	<?php foreach ($this->categories as $categorie):?>
		<li><?php echo $this->escape($categorie->nom_categorie)?></li>
		<?php endforeach;?>
	</ul>

<table>
    <tr>
        <th>Designation</th>
        <th>Prix</th>
        <th>&nbsp;</th>
    </tr>
	
	<?php foreach($this->articles as $article) : ?>
    <tr>
        <td><a href="<?php echo $this->url(array('controller'=>'article',
                'action'=>'details', 'id'=>$article->id));?>"><?php echo $this->escape($article->designation);?></a></td>
        
        
    </tr>
<?php endforeach; ?>
</table>